<template>
  <div id="header">
    <div class="headerslot">
      <div class="title">
        <slot name="left"> </slot>
      </div>

      <div id="search">
        <slot name="center"> </slot>
      </div>

      <div class="scan">
        <slot name="right"></slot>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
#header {
  border: 1px solid transparent;
  .headerslot {
    display: flex;
    margin-top: 30px;
    height: 80px;
    align-items: center;
    .title {
      margin-left: 40px;
      width: 48px;
      height: 50px;
    }
    #search {
      position: relative;
      width: 515px;
      height: 47px;
      margin-left: 23px;
      #searchInput {
        width: 515px;
        border-radius: 24px;
        padding-left: 70px;
        position: absolute;
        left: 0;
        font-size: 13px;
        height: 50px;
      }
      .search_icon {
        position: absolute;
        top: 10px;
        left: 27px;
        width: 32px;
        height: 32px;
      }
    }
    .scan {
      line-height: 20px;
      width: 120px;
      .scanimg {
        img {
          width: 40px;
          height: 40px;
        }
      }
      .scantxt {
        font-size: 12px;
        color: #fff;
      }
      #searchbtn {
        width: 92px;
        height: 46px;
        background: #ff6666;
        border-radius: 23px;
        font-size: 20px;
        color: #fefefe;
        margin-top: 5px;
      }
    }
  }
}
</style>